package cn.com.guage.collection;

import java.util.LinkedHashMap;
import java.util.Map;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

public class LinkedHashMapTest {
	public static void main(String[] args)
    {
		Lock lock = new ReentrantLock();
        Map<String, String> test = new LinkedHashMap<String, String>();
        test.put("化学","93");
        test.put("数学","98");
        test.put("生物","92");
        test.put("英语","97");
        test.put("物理","94");
        test.put("历史","96");
        test.put("语文","99");
        test.put("地理","95");
        for (Map.Entry entry : test.entrySet())
        {
            System.out.println(entry.getKey().toString() + ":" + entry.getValue().toString());
        }
    }
}
